import request from '@/utils/request'

// 查询课程详情-资源关联列表
export function listCourseDetailCurriculum(query) {
  return request({
    url: '/project/courseDetailCurriculum/list',
    method: 'get',
    params: query
  })
}

// 查询课程详情-资源关联详细
export function getCourseDetailCurriculum(id) {
  return request({
    url: '/project/courseDetailCurriculum/' + id,
    method: 'get'
  })
}

// 新增课程详情-资源关联
export function addCourseDetailCurriculum(data) {
  return request({
    url: '/project/courseDetailCurriculum',
    method: 'post',
    data: data
  })
}

// 修改课程详情-资源关联
export function updateCourseDetailCurriculum(data) {
  return request({
    url: '/project/courseDetailCurriculum',
    method: 'put',
    data: data
  })
}

// 删除课程详情-资源关联
export function delCourseDetailCurriculum(id) {
  return request({
    url: '/project/courseDetailCurriculum/' + id,
    method: 'delete'
  })
}
